package com.xxx.greneric;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/21  14:20
 * @Copyright
 */
public class MyColl<F> {
private  F s;

    public F getS() {
        return s;
    }

    public void setS(F s) {
        this.s = s;
    }

    //泛型方法
    public <T> void show(T s){
        System.out.println("s = " + s);

    }
}
